
message(STATUS "Configuring webProtocol...")

aux_source_directory(. LIB_SRCS)			# 添加当前目录下所有的源文件

get_property(BIN GLOBAL PROPERTY "BIN_DIR" ) 

if (debug STREQUAL "ON" OR debug STREQUAL "on")
    add_library (webProtocol STATIC ${LIB_SRCS})				# 当前目录下的文件生成一个链接库
    # 显示INCLUDE_OPENCL 
    MESSAGE(STATUS "UDPBIN :${BIN}")
    install(TARGETS webProtocol 
    ARCHIVE  DESTINATION ${BIN} 
     )
else()
    add_library (webProtocol SHARED ${LIB_SRCS})				# 当前目录下的文件生成一个链接库

    # 显示INCLUDE_OPENCL 
    MESSAGE(STATUS "UDPBIN :${BIN}")
    install(TARGETS webProtocol  
    LIBRARY DESTINATION ${BIN} )
endif()
